home *** CD-ROM | disk | FTP | other *** search
- tell application "iView mediaPro"
-
- -- methods for accessing windows
- -- -----------------------------
- -- get the name of window 1 -- numeric index (e.g. 1)
- -- get the name of the window before window 2 -- before/after another element
- -- get the name of windows 1 thru 2 -- as a range of elements [result is list]
- -- get the index of window "Catalog #2" -- by name
- -- get the index of every window whose name contains "cat" -- test
-
- -- get/set window properties
- -- ----------------------------
- -- get the view of window 1
- -- set the view of window 1 to thumbnail view
- -- get the bounds of window 1
- -- set the bounds of window 1 to {6, 42, 672, 730}
- -- get the importing of window 1
- -- set the importing of window 1 to false
- -- set myList to the selection of window 1
- -- set the selection of window 1 to {1, 4} -- or, for single selection
- -- set the selection of window 1 to 4
- -- get the password of window 1
- -- set the password of window 1 to "8081"
-
- -- function samples
- -- ----------------
- -- count windows
- -- count (windows whose name contains "cat")
- -- exists window 10
- -- name of window 1
- -- data size of the name of window 1
-
-
- -- command samples
- -- ---------------
- -- make window
- -- close window 1 with saving
- -- save window 1
- -- save window 1 in file "mac os:test 1"
- -- print window 1 -- asks for settings
- -- print every window -- asks for settings
- -- if (count windows) > 1 then select window 2
- -- run slide show of window 1
- -- select window "Catalog #2"
-
- end tell